package com.example.service.impl;

import com.example.Bean.po.UserInfo;
import com.example.Bean.vo.UserInfoVO;
import com.example.Dao.UserInfoDao;
import com.example.service.IUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoService implements IUserInfoService {

	@Autowired
	UserInfoDao userInfoDao;

	@Override
	public Boolean login(UserInfoVO userInfoVO) {
		UserInfo userInfo = userInfoDao.selectUser(userInfoVO);
		if (userInfo != null) {
			return true;
		}
		return false;
	}
}
